﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Portal.API;
using System.Data;

public partial class Modules_Mod_HtmlEditor_HtmlEditor : ModuleBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadConfig();
    }

    protected void LoadConfig()
    {

        DataSet ds = this.ReadConfig();
        DataTable table = ds.Tables["Module"];
        DataRow row = table.Rows[0];

       // sb.Append(row["name_Text"].ToString());
        lb_title.InnerHtml = row["tb_Title"].ToString();
        lb_content.InnerHtml = HttpUtility.HtmlDecode(row["tb_HtmlContent"].ToString());
        //HttpUtility.HtmlEncode(row["tb_HtmlContent"].ToString());

        //Response.Write(HttpUtility.HtmlEncode(row["tb_HtmlContent"].ToString()));
        // Label2.Text = (Portal.API.Language.GetText(this, "ErrorWritingModulesConfig"));
    }
}
